#include<bits/stdc++.h>
using namespace std;
int main(){
	//freopen("grain.in" , "r" , stdin);
	//freopen("grain.out" , "w" , stdout);
	long long n;
	while(cin >> n){
		if((n & (n - 1)) == 0){
			cout << "yes" << endl;
		}
		else{
			cout << "no" << endl;
		}
	}
	return 0;
}
